﻿using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using UltiCoreLibrary;

namespace UltiSheet
{
    public partial class GameSetup : Form
    {
        private GameState gameState;

        public GameState GameState
        {
            set { gameState = value; }
        }
        public GameSetup()
        {
            InitializeComponent();
        }

        private void GameSetup_Closing(object sender, CancelEventArgs e)
        {
            gameState.players[0] = new Player(textBoxPlayer1.Text);
            gameState.players[1] = new Player(textBoxPlayer2.Text);
            gameState.players[2] = new Player(textBoxPlayer3.Text);
            gameState.started = true;
        }
    }
}